package com.leonzx.base.service.file;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * @Author:梁亮
 * @Description:
 * @Date: 2018/7/12 12:13
 */
public interface FileUploadService {
    String upload(InputStream inputStream, String key);

    String upload(MultipartFile file, String key);

    InputStream download(String key);

    boolean delete(String key);

    String getUrlByKey(String key);
}
